.class public Lcom/brixd/niceapp/ui/ZMScrollView;
.super Landroid/widget/ScrollView;
.source "ZMScrollView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;
    }
.end annotation


# instance fields
.field private mOnScrollChangedListener:Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;

.field private mScrollable:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 15
    invoke-direct {p0, p1}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;)V

    .line 10
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mScrollable:Z

    .line 16
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 19
    invoke-direct {p0, p1, p2}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 10
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mScrollable:Z

    .line 20
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    .line 23
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 10
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mScrollable:Z

    .line 24
    return-void
.end method


# virtual methods
.method public isScrollable()Z
    .registers 2

    .prologue
    .line 31
    iget-boolean v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mScrollable:Z

    return v0
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 3
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 41
    iget-boolean v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mScrollable:Z

    if-nez v0, :cond_6

    .line 42
    const/4 v0, 0x0

    .line 45
    :goto_5
    return v0

    :cond_6
    invoke-super {p0, p1}, Landroid/widget/ScrollView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto :goto_5
.end method

.method protected onScrollChanged(IIII)V
    .registers 6
    .param p1, "l"    # I
    .param p2, "t"    # I
    .param p3, "oldl"    # I
    .param p4, "oldt"    # I

    .prologue
    .line 60
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ScrollView;->onScrollChanged(IIII)V

    .line 62
    iget-object v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mOnScrollChangedListener:Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;

    if-eqz v0, :cond_c

    .line 63
    iget-object v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mOnScrollChangedListener:Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;

    invoke-interface {v0, p1, p2, p3, p4}, Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;->onScrollChanged(IIII)V

    .line 65
    :cond_c
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 3
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 51
    iget-boolean v0, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mScrollable:Z

    if-nez v0, :cond_6

    .line 52
    const/4 v0, 0x0

    .line 55
    :goto_5
    return v0

    :cond_6
    invoke-super {p0, p1}, Landroid/widget/ScrollView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto :goto_5
.end method

.method public setOnScrollChangedListener(Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;

    .prologue
    .line 35
    iput-object p1, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mOnScrollChangedListener:Lcom/brixd/niceapp/ui/ZMScrollView$OnScrollChangedListener;

    .line 36
    return-void
.end method

.method public setScrollable(Z)V
    .registers 2
    .param p1, "scrollable"    # Z

    .prologue
    .line 27
    iput-boolean p1, p0, Lcom/brixd/niceapp/ui/ZMScrollView;->mScrollable:Z

    .line 28
    return-void
.end method
